package entities;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Entity
@DiscriminatorValue(value="RODSTOCK")
public class RodamientoStock extends Rodamiento {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer stock;
	
	public RodamientoStock(){}
	
	public RodamientoStock(Rodamiento rodamiento){
		this.setCaracteristicas(rodamiento.getCaracteristicas());
		this.setCodigo(rodamiento.getCodigo());
		this.setMarca(rodamiento.getMarca());
		this.setOrigen(rodamiento.getOrigen());
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public Integer getStock() {
		return stock;
	}
}
